/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tallerfinal;

import tallerfinal.model.QrModel;
import tallerfinal.model.QtModel;
import tallerfinal.model.RrModel;
import tallerfinal.model.RtModel;
import tallerfinal.util.distributions.BinomialGenerator;
import tallerfinal.util.distributions.ConstantGenerator;
import tallerfinal.util.distributions.DiscreteUniformGenerator;
import tallerfinal.util.distributions.ExponentialGenerator;
import tallerfinal.util.distributions.GammaGenerator;
import tallerfinal.util.distributions.NormalGenerator;
import tallerfinal.util.distributions.PoissonGenerator;
import tallerfinal.util.distributions.TriangularGenerator;
import tallerfinal.util.distributions.UniformGenerator;
import tallerfinal.util.distributions.WeibullGenerator;
import tallerfinal.view.PrincipalView;
import tallerfinal.view.distributions.BinomialView;
import tallerfinal.view.distributions.ConstantView;
import tallerfinal.view.distributions.DiscreteUniformView;
import tallerfinal.view.distributions.ExponentialView;
import tallerfinal.view.distributions.GammaView;
import tallerfinal.view.distributions.NormalView;
import tallerfinal.view.distributions.PoissonView;
import tallerfinal.view.distributions.TriangularView;
import tallerfinal.view.distributions.UniformView;
import tallerfinal.view.distributions.WeibullView;

/**
 *
 * @author ricardo
 */
public class TallerFinal {

    static {
        try {
            Class.forName(BinomialGenerator.class.getName());
            Class.forName(ConstantGenerator.class.getName());
            Class.forName(DiscreteUniformGenerator.class.getName());
            Class.forName(DiscreteUniformGenerator.class.getName());
            Class.forName(ExponentialGenerator.class.getName());
            Class.forName(GammaGenerator.class.getName());
            Class.forName(NormalGenerator.class.getName());
            Class.forName(PoissonGenerator.class.getName());
            Class.forName(TriangularGenerator.class.getName());
            Class.forName(UniformGenerator.class.getName());
            Class.forName(WeibullGenerator.class.getName());
            Class.forName(BinomialView.class.getName());
            Class.forName(ConstantView.class.getName());
            Class.forName(DiscreteUniformView.class.getName());
            Class.forName(ExponentialView.class.getName());
            Class.forName(GammaView.class.getName());
            Class.forName(NormalView.class.getName());
            Class.forName(PoissonView.class.getName());
            Class.forName(TriangularView.class.getName());
            Class.forName(UniformView.class.getName());
            Class.forName(WeibullView.class.getName());
            Class.forName(QtModel.class.getName());
            Class.forName(QrModel.class.getName());
            Class.forName(RtModel.class.getName());
            Class.forName(RrModel.class.getName());

        } catch (ClassNotFoundException any) {
            any.printStackTrace();
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(PrincipalView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new PrincipalView().setVisible(true);
            }
        });
    }
}
